#ifndef _CUSTOM_H
#define _CUSTOM_H

#include "client.h"
#define NUMOFVARS 21
#define SERVER_COMMON_NAME "ACS_ECE_NTUA_GR" 
//#define _NO_DEBUG

extern StateVariable deviceVariables[];

DeviceIdStruct *getDeviceId(void);
ParameterValueList *getInformParameterList(void);
int getConnectionAddress(char *addr, int *port, int *secure);
char* getConnectionString();
unsigned int getListeningPort();
int checkParameter(ParameterValueStruct pv);
void handleReboot(void);
void handleUpload(char *cmdkey, char *ftype, char* url, char *uname, char *pwd, unsigned int dsecs, short int *stat, DateTime **stime, DateTime **ctime);
void handleDownload(char *cmdkey, char *ftype, char* url, char *uname, char *pwd, unsigned int fsize, char *tgetfname, unsigned int dsecs, char *surl, char *furl, short int *stat, DateTime **stime, DateTime **ctime);

void testset(ParameterValueList *);

void testget(ParameterValueList *);

#endif //_CUSTOM_H

